<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>请假管理</title>
    <link href="/css/public.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="/js/jquery.js"></script>
    <script language="javascript" src="/js/navbar.js"></script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td height="30">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td height="24" bgcolor="#353c44">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="6%" height="19" valign="bottom">
                                                <div align="center"><img src="images/tb.gif" width="14" height="14"/>
                                                </div>
                                            </td>
                                            <td width="94%" valign="bottom"><span class="STYLE1">请假申请列表列表</span></td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    <div align="right"><span class="STYLE1">
		              </span></div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE10" colspan="8">
            <div align="left">
                <a href="/leaveBill/editUI">添加请假申请</a>
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" onmouseover="changeto()"
                   onmouseout="changeback()">
                <tr>
                    <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6">
                        <div align="center"><span class="STYLE10">ID</span></div>
                    </td>
                    <td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
                        <div align="center"><span class="STYLE10">请假人</span></div>
                    </td>
                    <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6">
                        <div align="center"><span class="STYLE10">请假天数</span></div>
                    </td>
                    <td width="15%" height="20" bgcolor="d3eaef" class="STYLE6">
                        <div align="center"><span class="STYLE10">请假事由</span></div>
                    </td>
                    <td width="20%" height="20" bgcolor="d3eaef" class="STYLE6">
                        <div align="center"><span class="STYLE10">请假备注</span></div>
                    </td>
                    <td width="15%" height="20" bgcolor="d3eaef" class="STYLE6">
                        <div align="center"><span class="STYLE10">请假时间</span></div>
                    </td>
                    <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6">
                        <div align="center"><span class="STYLE10">请假状态</span></div>
                    </td>
                    <td width="25%" height="20" bgcolor="d3eaef" class="STYLE6">
                        <div align="center"><span class="STYLE10">操作</span></div>
                    </td>
                </tr>
            <#list leaveBillList as leaveBill>
                <tr>
                    <td height="20" bgcolor="#FFFFFF" class="STYLE6">
                        <div align="center">${leaveBill.id}</div>
                    </td>
                    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
                        <div align="center">${leaveBill.employeeName}</div>
                    </td>
                    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
                        <div align="center">${leaveBill.days}</div>
                    </td>
                    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
                        <div align="center">${leaveBill.content}</div>
                    </td>
                    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
                        <div align="center">${leaveBill.remartk}</div>
                    </td>
                    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
                        <div align="center">${leaveBill.leaveDate?string("yyyy-MM-dd HH:mm:ss")}</div>
                    </td>
                    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
                        <div align="center">
                            <#if leaveBill.state == 0>
                                初始录入
                            <#elseif leaveBill.state == 1>
                                审核中
                            <#else>
                                审核完成
                            </#if>
                        </div>
                    </td>
                    <td height="20" bgcolor="#FFFFFF">
                        <div align="center" class="STYLE21">
                        <#if leaveBill.state == 0>
                            <a href="/leaveBill/editUI?id=${leaveBill.id}">修改</a>
                            <a href="/leaveBill/${leaveBill.id}/delete">删除</a>
                            <a href="/workflow/${leaveBill.id}/startProcess">申请请假</a>
                        <#elseif leaveBill.state == 1>
                            <a href="/workflow/${leaveBill.id}/viewHisComment">查看审核记录</a>
                        <#else>
                            <a href="/leaveBill/${leaveBill.id}/delete">删除</a>
                            <a href="/workflow/${leaveBill.id}/viewHisComment">查看审核记录</a>
                        </#if>
                        </div>
                    </td>
                </tr>
            </#list>

            </table>
        </td>
    </tr>
</table>
</body>
</html>